#region license
# This file is part of Grawlix.
# 
# Grawlix is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
# 
# Grawlix is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public
# License along with Grawlix.  If not, see
# <http://www.gnu.org/licenses/>.
#endregion

"""Activation information about a type converter."""

namespace Grawlix.Services
import System

class ConverterInfo:
"""Activation information about a type converter."""
	
	def constructor(
		[required] key as string,
		[required] type as string):
	"""
	Initializes a new ConverterInfo object.
	Param key: The key that identifies this converter.
	Param type: The type to instantiate.
	"""
		_key = key
		_type = type
	
	override def ToString():
	"""
	Gets a string representation for this object.
	Returns: A string representation for this object.
	"""
		return "ConverterInfo ${Key}=${Type}"
	
	[getter(Key)]
	private _key as string
	"""The id key for this particular converter."""
	
	[getter(Type)]
	private _type as string
	"""The type to instantiate."""
	
